package com.example.springboot_study.controller;

import com.example.springboot_study.common.exception.MyException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : liqun
 * @createTime : 2021/9/9 11:11
 */
@Api(tags = "学生管理")
@RestController
@RequestMapping("/student")
public class StudentController {
    @ApiOperation(value = "获取学生清单",tags = "教学管理")
    @GetMapping("/list")
    public String bbb() throws MyException {
        return "bbb";
    }

    @ApiOperation("获取教某个学生的老师清单")
    @GetMapping("/his-teachers")
    public String ccc() throws MyException {
        return "ccc";
    }

    @ApiOperation("创建一个学生")
    @PostMapping("/aaa")
    public String aaa() throws MyException {
        return "aaa";
    }
}
